from selenium.webdriver.common.by import By
class CareerManagementLocator():

    # 登录标签
    login_click = (By.XPATH, '//a[text()="我的工作台"]')
    username_loc = (By.XPATH, '//input[@placeholder="用户名"]')
    password_loc = (By.XPATH, '//input[@placeholder="密码"]')
    captcha = (By.XPATH, '//input[@placeholder="验证码"]')
    captcha_img = (By.XPATH, '//div[contains(@class, "login-captcha")]/img')
    # 登录按钮
    loginsbt = (By.XPATH, '//span[text()="登录"]')
    # 我的工作台
    workbench_loc = (By.LINK_TEXT, '我的工作台')
    # 取消修改密码按钮
    cancel_password_change = (By.XPATH, '//div[@aria-label="修改密码"]/div[1]/button/i')

    # 教职工信息管理应用
    teacher_manage = (By.XPATH, '//div[text()="教职工信息管理系统"]')

    # 入职管理
    career_management = (By.XPATH, '//span[text()=" 入职管理"]')

    # 添加教师
    add_teacher = (By.XPATH, '//span[text()="添加教师"]')

    # 基本信息标签
    basic_info = (By.XPATH, '//header[text()="基本信息"]')

    # 姓名输入框
    name = (By.XPATH, '//form[@class="el-form"]/div[1]/div[1]/div[2]/div/div/div[1]/div[1]/div/div[1]/div/input')
    # 姓名输入框提示标签
    name_tips = (By.XPATH, '//form[@class="el-form"]/div[1]/div[1]/div[2]/div/div/div[1]/div[1]/div/div[2]')

    # 教职工类别下拉框
    category_faculty = (By.XPATH, '//input[@placeholder="请选择教职工类别"]')
    # 教职工类别提示信息
    category_faculty_tips = (By.XPATH, '//div[@class="el-form-item__error"]')
    # 专任教师
    fulltime_teacher = (By.XPATH, '//span[text()="专任教师"]')
    # 教辅人员
    staff_members = (By.XPATH, '//span[text()="教辅人员"]')
    # 工勤人员
    logistics_personnel = (By.XPATH, '//span[text()="工勤人员"]')
    # 行政人员
    administrative_personnel = (By.XPATH, '//span[text()="行政人员"]')
    # 外聘人员
    external_personnel = (By.XPATH, '//span[text()="外聘人员"]')
    # 列表数量标签定位
    num = (By.XPATH, '//div[@class="teachers_manage_retire"]//span[contains(text(), "共")]')

    # 手机号
    phone = (By.XPATH, '//form[@class="el-form"]/div[1]/div[1]/div[2]/div/div/div[1]/div[2]/div/div[1]/div/input')
    # 手机号输入框提示标签
    phone_tips = (By.XPATH, '//div[@class="el-form-item__error"]')


    # 确定按钮
    sure = (By.XPATH, '//button[@class="el-button el-button--primary el-button--medium"]/span')
    # 取消按钮
    unsure = (By.XPATH, '//button[@class="el-button el-button--default el-button--medium"]/span')

    # 系统提示信息
    system_tips = (By.XPATH, '//div[@role="alert"]/p')

    # 列表第一条的姓名标签定位
    list1_name = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[3]/div/a')
    # 列表第一个删除按钮定位
    dle = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]//tr[1]/td[13]//span[text()="删除"]')
    # 亚瑟的删除按钮
    del_ys = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "亚瑟")]/../../..//span[text()="删除"]')
    # 程咬金的删除按钮
    del_cyj = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "程咬金")]/../../..//span[text()="删除"]')
    # 德莱文的删除按钮
    del_dlw = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "德莱文")]/../../..//span[text()="删除"]')
    # 黄子轩的删除按钮
    del_hzx = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "黄子轩")]/../../..//span[text()="删除"]')
    # 米莱迪的删除按钮
    del_mld = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "米莱迪")]/../../..//span[text()="删除"]')
    # 张翼德的删除按钮
    del_zyd = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "张翼德")]/../../..//span[text()="删除"]')
    # 张玄德的删除按钮
    del_zxd = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "张玄德")]/../../..//span[text()="删除"]')
    # 张胖德的删除按钮
    del_zpd = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "张胖德")]/../../..//span[text()="删除"]')
    # 黄子凡的删除按钮
    del_hzf = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "黄子凡")]/../../..//span[text()="删除"]')
    # 黄子涛的删除按钮
    del_hzt = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "黄子涛")]/../../..//span[text()="删除"]')
    # 光辉的删除按钮
    del_gh = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "光辉")]/../../..//span[text()="删除"]')
    # 牛魔的删除按钮
    del_nm = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "牛魔")]/../../..//span[text()="删除"]')
    # 继续删除
    continue_del = (By.XPATH, '//div[@aria-label="删除"]/div[3]/div[1]/button[3]/span')
    # 勾选我已知晓
    check_know = (By.XPATH, '//span[@class="el-radio__inner"]')
    # 确认删除按钮
    sure_dle = (By.XPATH, '//div[@class="el-dialog__wrapper"]/div/div[3]/div/button[2]/span')

    # 身份证号输入框
    idcard = (By.XPATH, '//input[@placeholder="请输入身份证号"]')
    # 身份证提示信息
    idcard_tips = (By.XPATH, '//div[@class="el-form-item__error"]')

    # 邮箱输入框
    emile = (By.XPATH, '//input[@placeholder="请输入邮箱"]')

    # 教籍号输入框
    church = (By.CSS_SELECTOR, 'input[placeholder="请输入教籍号"]')

    # 曾用名输入框
    former_name = (By.CSS_SELECTOR, 'input[placeholder="请输入曾用名"]')

    # 民族下拉框
    national = (By.CSS_SELECTOR, 'input[placeholder="请选择民族"]')

    # 汉族
    hanzu = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="汉族"]')

    # 壮族
    zhuangzu = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="壮族"]')

    # 满族
    manzu = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="满族"]')

    # 回族
    huizu = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="回族"]')

    # 苗族
    miaozu = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="苗族"]')

    # 出生日期下拉框
    date_birth =(By.XPATH, '//input[@placeholder="选择出生日期"]')
    # 年标签
    year = (By.XPATH, '//div[@class="el-date-picker__header"]/span[1]')
    # 月份
    month = (By.XPATH, '//div[@class="el-date-picker__header"]/span[2]')
    # 前一年
    before_year = (By.XPATH, '//div[@class="el-date-picker__header"]/button[1]')
    # 上一月
    before_month = (By.XPATH, '//div[@class="el-date-picker__header"]/button[2]')
    # 后一年
    after_year = (By.XPATH, '//div[@class="el-date-picker__header"]/button[3]')
    # 后一月
    after_month = (By.XPATH, '//div[@class="el-date-picker__header"]/button[4]')
    day = (By.XPATH, '//div[@class="el-picker-panel__content"]/table[1]/tbody/tr[3]/td[4]/div/span')

    # 政治面貌
    political_landscape = (By.XPATH, '//input[@placeholder="请选择政治面貌"]')
    # 共青团员
    league_member = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="共青团员"]')


    # 职称
    title = (By.XPATH, '//input[@placeholder="请选择职称"]')
    # 一级教师
    primary_teachers = (By.XPATH, '//div[contains(@x-placement,"-start")]//span[text()="一级教师"]')

    # 籍贯
    native_place = (By.XPATH, '//span[text()="请选择籍贯"]')
    # 滚动条
    scroll_bar = (By.XPATH, '//div[@role="tablist"]/div[1]/div[2]/div/div/div[1]/div[7]/div/div/div/div/span/ul')
    # 陕西省
    shanxi = (By.XPATH, '//span[text()="请选择籍贯"]/..//li[contains(text(), "陕西省")]')
    # 西安市
    xian = (By.XPATH, '//span[text()="请选择籍贯"]/..//li[contains(text(), "西安市")]')
    # 莲湖区
    lianhuqu = (By.XPATH, '//span[text()="请选择籍贯"]/..//li[contains(text(), "莲湖区")]')

    # 出生地
    place_birth = (By.XPATH, '//span[text()="请选择出生地"]')

    # 现住地
    current_address = (By.XPATH, '//span[text()="请选择现住地"]')

    # 现住详细地址
    full_current_address = (By.XPATH, '//input[@placeholder="现住地详细地址"]')

    # QQ
    QQ = (By.XPATH, '//input[@placeholder="请输入QQ号码"]')

    # 微信
    wechat = (By.XPATH, '//input[@placeholder="请输入微信号"]')

    # 工作信息菜单标签
    job_title = (By.XPATH, '//form[@class="el-form"]/div[1]/div[2]/div[1]/div')

    # 教职工来源
    source_faculty = (By.XPATH, '//input[@placeholder="请选择教职工来源"]')

    # 复员
    demobilization = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[3]')

    # 用人形式
    use_people_way = (By.XPATH, '//input[@placeholder="请选择人员状态"]')

    # 人事代理
    personnel_agency = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[1]')

    # 其它
    other = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 签订合同情况
    sign_contract = (By.XPATH, '//input[@placeholder="请选择签订合同情况"]')

    # 劳动合同
    labor_contract = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[3]')

    # 入校日期
    enter_date = (By.XPATH, '//input[@placeholder="选择进本校日期"]')

    # 教职工号
    staff_num = (By.XPATH, '//input[@placeholder="请输入教职工号"]')

    # 学历信息菜单标签
    education_info = (By.XPATH, '//header[text()="学历信息"]')

    # 第一学历
    first_education = (By.XPATH, '//input[@placeholder="请选择学历"]')
    # 第一学历标签
    first_education_tips = (By.XPATH, '//label[text()="第一学历"]')

    # 本科
    undergraduate_course = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 第一学历毕业院校
    first_university = (By.XPATH, '//input[@placeholder="请输入第一学历毕业院校"]')

    # 第一学历专业
    first_professional = (By.XPATH, '//input[@placeholder="请输入第一学历专业"]')

    # 第一学历毕业时间
    first_degree_graduation_time = (By.XPATH, '//label[text()="第一学历毕业时间"]/..//input[@placeholder="请选择日期"]')

    # 年标签定位
    years = (By.XPATH, '//div[@class="el-picker-panel__body"]//span[text()="2020 年"]')

    # 第一学位
    first_degree = (By.XPATH, '//input[@placeholder="请选择学位"]')

    # 硕士
    master_degree = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 最高学历
    highest_degree = (By.XPATH, '//label[text()="最高学历"]/..//input[@placeholder="请选择学历"]')

    # 博士研究生
    doctor = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[1]')

    # 本科
    ben = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 最高学历毕业时间
    highest_degree_graduation_time = (By.XPATH, '//label[text()="最高学历毕业时间"]/..//input[@placeholder="请选择日期"]')

    # 最高学历专业
    highest_degree_professional = (By.XPATH, '//input[@placeholder="请输入最高学历专业"]')

    # 最高学历毕业院校
    highest_degree_graduate_school = (By.XPATH, '//input[@placeholder="请输入最高学历毕业院校"]')

    # 教职工个人辅助信息标签
    auxiliary_info = (By.XPATH, '//header[text()="教职工个人辅助信息"]')

    # 健康状况标签
    health_tips = (By.XPATH, '//label[text()="健康状况"]')

    # 健康状况
    health = (By.XPATH, '//input[@placeholder="请选择健康状况"]')

    # 一般或较弱
    fair_or_weak = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 婚姻状况
    marital_status = (By.XPATH, '//input[@placeholder="请选择婚姻状况"]')

    # 已婚
    married = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 全日制师范类专业毕业
    graduated_normal_true = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[1]/div[2]/div/div/label[1]/span[1]')

    # 参加工作年月
    year_of_employment = (By.XPATH, '//input[@placeholder="选择参加工作年月"]')

    # 特教专业培养培训
    join_special_training = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[1]/div[3]/div/div/label[1]/span[1]')

    # 特殊教育从业证书
    join_special_education_certificate = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[2]/div[3]/div/div/label[1]/span[1]')

    # 信息技术能力
    info_technology_capability = (By.XPATH, '//input[@placeholder="请选择信息技术能力"]')

    # 熟练
    skilled = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 不属于免费师范生
    no_free_normal_student = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[2]/div[4]/div/div/label[2]/span[1]')

    # 是否参加基层服务项目
    grassroots_service_projects = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[1]/div[5]/div/div/label[1]/span[1]')

    # 县级以上骨干教师
    backbone_teacher = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[1]/div[6]/div/div/label[1]/span[1]')

    # 是否心理健康教育教师'
    psychological_teacher = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[2]/div[6]/div/div/label[1]/span[1]')

    # 特技教师
    special_teacher = (By.XPATH, '//form[@class="el-form"]/div[1]/div[4]/div[2]/div/div/div[1]/div[7]/div/div/label[1]/span[1]')

    # 上传头像
    upload_pic = (By.XPATH, '//div[@class="avatar-uploader"]/div/input')

    # img
    img = (By.XPATH, '//div[@class="el-card__body"]/div/div/form/div[1]/div[1]/div[2]/div/div/div[3]/div[1]/div/img')


    # 完善信息
    perfect_info = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]//tr[1]//span[text()="完善信息"]')

    # 列表第二个完善信息
    perfect_info2 = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]//tr[2]//span[text()="完善信息"]')

    # 列表第三个完善信息
    perfect_info3 = (By.XPATH, '//div[@class="el-table__fixed-right"]/div[2]//tr[3]//span[text()="完善信息"]')

    # 牛魔的离职按钮
    departure = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "牛魔")]/../../..//span[text()="离职"]')
    # 亚瑟的离职按钮
    departure1 = (By.XPATH, '//div[@class="el-table__fixed-right"]//a[contains(text(), "亚瑟")]/../../..//span[text()="离职"]')

    # 取消
    quxiao = (By.XPATH, '//form[@class="el-form retire--foems"]//span[text()="取消"]')

    # 退休
    retired = (By.XPATH, '//div[@class="el-table__fixed-body-wrapper"]/table/tbody/tr[1]//span[text()="退休"]')

    # 列表第一个姓名标签
    list_name = (By.XPATH, '//div[@class="el-card__body"]/div[6]/div[3]/table/tbody/tr[1]/td[3]/div/a')

    # 合同关系标签
    label = (By.XPATH, '//label[text()="合同关系："]')

    # 合同关系
    contract_relationship = (By.XPATH, '//input[@placeholder="请选择合同关系"]')

    # 合同期满, 个人要求接触劳动合同
    l1 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[2]')

    # 离职管理菜单
    leave_management = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[4]/span')

    # 离职管理列表第一个姓名标签
    list_name1 = (By.XPATH, '//div[@class="el-table__body-wrapper is-scrolling-none"]/table/tbody/tr/td[2]/div')

    # 提示 确定按钮
    tips = (By.XPATH, '//div[@aria-label="提示"]/div/div[3]/button[2]/span')

    # 退休类型标签
    label1 = (By.XPATH, '//label[text()="退休类型："]')

    # 退休类型
    retired_type = (By.XPATH, '//input[@placeholder="请选择退休类型"]')

    # 退休
    l2 = (By.XPATH, '//div[contains(@x-placement,"-start")]/div[1]/div[1]/ul/li[1]')

    # 退休管理菜单
    retirement = (By.XPATH, '//aside[@class="site-sidebar-sub site-sidebar-sub--dark"]/div/ul/li[5]/span')

    # 查询输入框
    find_box = (By.XPATH, '//input[@placeholder="姓名/手机号/身份证号/邮箱/教籍号"]')

    # 列表第一个姓名标签
    n1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[3]/div/a')

    # 列表第二个姓名标签
    n2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[2]/td[3]/div/a')

    # 列表第三个姓名标签
    n3 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[3]/td[3]/div/a')

    # 列表第一个电话标签
    phone1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[5]/div')

    # 列表第二个电话标签
    phone2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[2]/td[5]/div')

    # 列表第三个电话标签
    phone3 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[3]/td[5]/div')

    # 列表第一个身份证标签
    id1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[6]/div')

    # 列表第一个身份证标签
    id2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[2]/td[6]/div')

    # 列表第一个身份证标签
    id3 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[3]/td[6]/div')

    # 暂无数据
    no_data = (By.XPATH, '//span[text()="暂无数据"]')

    # 教职工类别筛选框
    category_faculty_screen = (By.XPATH, '//input[@placeholder="请选择教职工类别"]')

    # 列表第一个教职工类别标签
    type1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[11]/div')

    # 列表第一个教职工类别标签
    type2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[2]/td[11]/div')

    # 列表第一个教职工类别标签
    type3 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[3]/td[11]/div')

    # 职称筛选框
    title_screen = (By.XPATH, '//input[@placeholder="请选择职称"]')

    # 列表第一个职称标签
    title1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[1]/td[12]/div')

    # 列表第一个职称标签
    title2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[2]/td[12]/div')

    # 列表第一个职称标签
    title3 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//tr[3]/td[12]/div')

    # 学历筛选框
    degree_screen = (By.XPATH, '//input[@placeholder="请选择学历"]')

    # 列表数量标签
    numbers = (By.XPATH, '//span[contains(text(), "条")]/..//span[contains(text(), "共")]')

    # 勾选列表第一个
    span1 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//a[contains(text(), "程咬金")]/../../..//span[@class="el-checkbox__inner"]')

    # 勾选列表第二个
    span2 = (By.XPATH, '//div[contains(@class, "-scrolling-left")]//a[contains(text(), "亚瑟")]/../../..//span[@class="el-checkbox__inner"]')

    # 批量删除
    batch_delete = (By.XPATH, '//span[text()="批量删除"]')















